package com.dddd.blog.blogsp.feign;


import com.dddd.blog.blogcommon.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 喵星球的大橘
 */
@FeignClient(value = "blogUserService",path = "/user",qualifier = "blogUserService")
@Component
public interface ForUserFeignClient {


    /**
     * @return
     */
    @GetMapping("/getId/{name}")
    Result getUserIdByName(@PathVariable("name")String name);

}
